
class UserPathPoint {
    int floorId;
    int time;
    double x;
    double y;

    UserPathPoint({this.floorId, this.time, this.x, this.y});

    factory UserPathPoint.fromJson(Map<String, dynamic> json) {
        return UserPathPoint(
            floorId: json['floorId'], 
            time: json['time'], 
            x: json['x'], 
            y: json['y'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['floorId'] = this.floorId;
        data['time'] = this.time;
        data['x'] = this.x;
        data['y'] = this.y;
        return data;
    }
}